﻿
// TestCTPDlg.h: 头文件
//

#pragma once
#include "../ServiceLayer/IServiceSpi.h"

// CTestCTPDlg 对话框
class CTestCTPDlg : public CDialogEx,public IServiceReceiver
{
// 构造
public:
	CTestCTPDlg(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_TESTCTP_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedLogin();
	afx_msg void OnBnClickedExit();
	virtual void OnReceiveData(WPARAM wParam, LPARAM lParam);
protected:
	TCHAR user_account[128];
	TCHAR user_password[128];
public:
	CEdit m_edtUserAccount;
	CEdit m_edtUserPassword;
public:
	CComboBox m_cbServers;
	CString m_strUserAccount;
	CString m_strUserPassword;
	CString m_strServers;
	afx_msg void OnClickedCheckAccountSave();
	BOOL m_bAccountSave;
	CProgressCtrl m_pbLoginProgress;
};
